package com.woniuxy.service.impl;

import com.woniuxy.dao.RbacManagerDao;
import com.woniuxy.entity.RbacManager;
import com.woniuxy.service.RbacManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author: wgt
 * Date: 2021/11/14:18:53
 * Description:
 */
@Service
public class RbacManagerImpl implements RbacManagerService {

 RbacManagerDao rbacManagerDao;
 public  RbacManagerDao rbacManagerDao(){
     return  rbacManagerDao;
 }
 public void setRbacManagerDao(RbacManagerDao rbacManagerDao){
     this.rbacManagerDao=rbacManagerDao;
 }


    @Override
    public List<RbacManager> findAll(int id) {
      return   rbacManagerDao.findAll(id);
    }

    @Override
    public int save(RbacManager rbacManager) {
        return rbacManagerDao.save(rbacManager);
    }

    @Override
    public int deleteById(RbacManager id) {
        return rbacManagerDao.deleteById(id);
    }

    @Override
    public int update(RbacManager rbacManager) {
        return rbacManagerDao.update(rbacManager);
    }
}





